package com.ctshk.rpc.order.tour.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ctshk.common.dto.Result;
import com.ctshk.rpc.order.tour.dto.SeriesOrderReceiptTouristListDTO;
import com.ctshk.rpc.order.tour.entity.SeriesOrderReceiptTourist;
import com.ctshk.rpc.order.tour.mapper.SeriesOrderReceiptTouristMapper;
import com.ctshk.rpc.order.tour.req.SeriesOrderReceiptTouristListReq;
import com.ctshk.rpc.order.tour.service.ISeriesOrderReceiptTouristService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 * 系列团收据关联游客 服务实现类
 * </p>
 *
 * @author 谭响
 * @since 2021-02-01
 */
@DubboService
public class SeriesOrderReceiptTouristServiceImpl extends ServiceImpl<SeriesOrderReceiptTouristMapper, SeriesOrderReceiptTourist> implements ISeriesOrderReceiptTouristService {

    @Autowired
    private SeriesOrderReceiptTouristMapper seriesOrderReceiptTouristMapper;

    /**
     * 列表
     */
    @Override
    public Result<List<SeriesOrderReceiptTouristListDTO>> list(SeriesOrderReceiptTouristListReq req) {
        List<SeriesOrderReceiptTouristListDTO> dtoList =  seriesOrderReceiptTouristMapper.selectListBySelective(req);
        return Result.success(dtoList);
    }
}
